import axios from "./request";

function user_register(params = {}) {
    return axios.post('/api/user/register', params)
}
function user_login(params = {}) {
    return axios.post('/api/user/login', params)
}
function role_list(params = {}) {
    return axios.get('/api/role/list', {params})
}
function business_list(params = {}) {
    return axios.get('/api/business/list', {params})
}
function business_add(params = {}) {
    return axios.post('/api/business/add', params)
}
function business_delete(params = {}) {
    return axios.post('/api/business/delete', params)
}
function leave_list(params = {}) {
    return axios.get('/api/leave/list', {params})
}
function leave_add(params = {}) {
    return axios.post('/api/leave/add', params)
}
function leave_delete(params = {}) {
    return axios.post('/api/leave/delete', params)
}
function work_list(params = {}) {
    return axios.get('/api/work/list', {params})
}
function work_add(params = {}) {
    return axios.post('/api/work/add', params)
}
function work_delete(params = {}) {
    return axios.post('/api/work/delete', params)
}
function outside_list(params = {}) {
    return axios.get('/api/outside/list', {params})
}
function outside_add(params = {}) {
    return axios.post('/api/outside/add', params)
}
function outside_delete(params = {}) {
    return axios.post('/api/outside/delete', params)
}


export{
    user_register,
    user_login,
    role_list,
    business_list,
    business_add,
    business_delete,
    leave_list,
    leave_add,
    leave_delete,
    outside_list,
    outside_add,
    outside_delete,
    work_list,
    work_add,
    work_delete
}